package gonz.data.swim;

import org.apache.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class TwoPiecesSwim extends Swim {
    public static final Logger log = Logger.getLogger(TwoPiecesSwim.class);

    private Bottom bottom;

    public TwoPiecesSwim(WebDriver webDriver, String imgFolder) {
        super(webDriver, imgFolder, false);
        this.bottom = new Bottom(webDriver, this);
    }

    public Bottom getBottom() {
        return bottom;
    }
    public TwoPiecesSwim openNextSwim(String imgFolder) {
        webDriver.findElement(By.xpath(NEXT_SWIM_NUMBER_ID)).click();
        return new TwoPiecesSwim(webDriver, imgFolder);
    }

}
